//for
users = [
  ["name":"devops","role":"dev"],
  ["name":"devops1","role":"admin"],
  ["name":"devops2","role":"ops"],
  ["name":"devops3","role":"test"]
]
pipeline{
  agent any
  stages{
    stage('run'){
      steps{
        script{
          user_names = []
          for (user in users){
            println(user["name"])
            user_names << user["name"]
          }
          println(user_names)
        }
      }
    }
  }
}
